
#include "Poco/Thread.h"
#include "Poco/RunnableAdapter.h"
#include "ConfigSlaveWork.h"
#include "ConfigClient.h"

int main(int argc,char * argv[])
{


	Config::ConfigSlaveActivity slave;
	slave.start();

	Poco::Thread::sleep(200);

	//Config::RecordSet recordset;
	//try{
	//	ConfigMasterPrx & master = ConfigClientObj.getMasterPrx();
	//	master->query("select * from Common_LogBaseConfig",recordset.getData());
	//}
	//catch(Config::Error & ex)
	//{
	//	//LOG_DEBUG("%s",ex.reason);
	//}
	//catch(const Ice::Exception & ex)
	//{
	//	//LOG_DEBUG("%s",ex.what());
	//}




	//recordset.toString();


	slave.stop();


	return 0;
}